Integrand size = 19, antiderivative size = 29 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {x}{a}-\frac {\sin (c+d x)}{d (a+a \cos (c+d x))} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2814, 2727} \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {x}{a}-\frac {\sin (c+d x)}{d (a \cos (c+d x)+a)} \]
[In]
[Out]
Rule 2727
Rule 2814
Rubi steps \begin{align*} \text {integral}& = \frac {x}{a}-\int \frac {1}{a+a \cos (c+d x)} \, dx \\ & = \frac {x}{a}-\frac {\sin (c+d x)}{d (a+a \cos (c+d x))} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(69\) vs. \(2(29)=58\).
Time = 0.14 (sec) , antiderivative size = 69, normalized size of antiderivative = 2.38 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=-\frac {\sin (c+d x) \left (\arcsin (\cos (c+d x)) (1+\cos (c+d x))+\sqrt {\sin ^2(c+d x)}\right )}{a d \sqrt {1-\cos (c+d x)} (1+\cos (c+d x))^{3/2}} \]
[In]
[Out]
Time = 0.72 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.79
method | result | size |
parallelrisch | \(\frac {d x -\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}\) | \(23\) |
risch | \(\frac {x}{a}-\frac {2 i}{d a \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}\) | \(29\) |
derivativedivides | \(\frac {-\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(32\) |
default | \(\frac {-\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}\) | \(32\) |
norman | \(\frac {\frac {x}{a}+\frac {x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}-\frac {\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}}{1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\) | \(75\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.28 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {d x \cos \left (d x + c\right ) + d x - \sin \left (d x + c\right )}{a d \cos \left (d x + c\right ) + a d} \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.93 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\begin {cases} \frac {x}{a} - \frac {\tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{a d} & \text {for}\: d \neq 0 \\\frac {x \cos {\left (c \right )}}{a \cos {\left (c \right )} + a} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.69 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {\frac {2 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {\sin \left (d x + c\right )}{a {\left (\cos \left (d x + c\right ) + 1\right )}}}{d} \]
[In]
[Out]
none
Time = 0.36 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.97 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {\frac {d x + c}{a} - \frac {\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a}}{d} \]
[In]
[Out]
Time = 14.64 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.79 \[ \int \frac {\cos (c+d x)}{a+a \cos (c+d x)} \, dx=\frac {x}{a}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a\,d} \]
[In]
[Out]